import request from '@/utils/request'

// todo 获取司机基本信息详情
export function getDriverInfo(id) {
  return request({
    url: `/manager/truck/${id}`,
    method: 'get'
  })
}

// todo 更新车辆信息
export function updateDriverInfo(data) {
  return request({
    url: `/manager/truck/${data.id}`,
    method: 'put',
    data
  })
}

// todo 图片上传
export function uploadImg(data) {
  return request({
    url: `/manager/files/imageUpload`,
    method: 'post',
    data
  })
}
